package org.example.blogserver.blog.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.blogpojo.blog.domain.ArticleType;
import org.example.blogpojo.blog.domain.Classity;
import org.example.blogpojo.blog.query.ArticleTypeQuery;
import org.example.blogpojo.blog.vo.ArticleTypeVo;

import java.util.List;

@Mapper
public interface ArticleTypeMapper {
    //@Select("select * from tb_articleType")
    List<ArticleType> getAllArticleType();

    @Select("select * from tb_article_type where id=#{id}")
    ArticleType getArticleTypeById(Long id);

    List<ArticleType> queryPage(ArticleTypeQuery articleTypeQuery);

    void insertArticleType(ArticleType articleType);

    void updateArticleType(ArticleType articleType);

    void deleteArticleType(Long id);

    void deleteArticleTypeByIds(Long[] ids);

    List<ArticleTypeVo> getArticleTypeVo();

    List<Classity> getClassityList();
}
